﻿using System.Collections.Generic;
using Eagles.Base;
using Eagles.Application.Model.Enums;
using Eagles.DomainService.Model.User;

namespace Eagles.Interface.DataAccess.UserArticle
{
    public interface IArticleDataAccess : IInterfaceBase
    {
        int CreateArticle(TbUserNews userNews);

        int EditArticle(TbUserNews userNews);

        List<TbUserNews> GetUserNews(NewsEnum newsEnum, int userId, int pageIndex, int pageSize);

        TbUserNews GetUserNewsDetail(int newId, int appId);
        
        List<TbUserNews> GetPblicUserNews(int appId, int branchId, bool isHome, int pageIndex, int pageSize);

        TbUserNews GetPublicUserNewsDetail(int newId, int appId);

        TbUserNews GetUserRequisitionDetail(int appId, int userId);
    }
}